IApi.ReadAxisOutputBit method
Reads a bit from an output of a real or simulated axis.
Namespace: IntervalZero.KINGSTAR.Base.Api
Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.5.0.0
Syntax
KsReturn<bool> ReadAxisOutputBit(
int Index,
int BitOffset
)
Function ReadAxisOutputBit(
Index As Integer,
BitOffset As Integer
) As KsReturn(Of Boolean)
Parameters
Index
Type: int
The index of an axis. Indexes are zero based. Aliases affect this parameter.
BitOffset
Type: int
Specifies a bit offset to the location to read a bit value. The max offset is determined by OutputLength in the SlaveStatus class.
Return value
Returns a KsError code and a bool value.
Remarks
ReadAxisOutputBit can only be called once a link is established and started.
Usable EtherCAT states
ecatOP
Examples
N/A
See also